package torinoflickrdata.db;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class EliminaFalsiPositivi {

	public static void main (String [] args) throws Exception{
		//continene tutti gli utenti  
		List<FOA2> f_esc = new ArrayList<FOA2>();
		List<FOA2> f_corr = new ArrayList<FOA2>();
		FlickrUserMethods.loadFOA(f_esc, "FinalFileEsclusione\\FileEsclusionePer_pilsmeisters,10min.txt");
		FlickrUserMethods.loadFOA(f_corr, "FlickrDataAMenoDelRaggio\\Flickr2PLSResults4Test1_pilsmeisters, 638_10min.txt");
		
		
		
		for (int i = 0; i < f_esc.size(); i++) {
			System.out.println(f_esc.get(i).toString());
		}
	    for (int i = 0; i < f_esc.size(); i++) {	
		
		  String username_i = f_esc.get(i).plsu;
			
			for (int j = 0; j < f_corr.size(); j++) {
			
				String username_j= f_corr.get(j).plsu;
				if(username_i.equals(username_j)){
			       f_corr.remove(f_corr.get(j));
				}			
			}   
    }
	    Collections.sort(f_corr);
  
	FlickrUserMethods.print("FinalResultsAfterElimination4pilsmeisters.txt", f_corr);
	
	}
}